﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <link href="~/css/app.css" rel="stylesheet" />
    <title>app下载</title>
    <style>
        #weixin-tip{display:none;position:fixed;left:0;top:0;background:rgba(0,0,0,0.8);filter:alpha(opacity=80);width:100%;height:100%;z-index:100;}
        #weixin-tip p{text-align:center;margin-top:10%;padding:0 5%;position:relative;}
        #weixin-tip .close{color:#fff;padding:5px;font:bold 20px/24px simsun;text-shadow:0 1px 0 #ddd;position:absolute;top:0;left:5%;}
    </style>
</head>
<body  class="success">
    <div class="page-wrap">
       
        <div class="download">
            <h3 class="entry-hd">立即下载新联芯健康档案</h3>
            <p class="entry-con">即可免费领取蓝牙智能血糖仪</p>
            <div class="download-btn"><a href="#"><img src="img/ios-btn.png" alt="苹果版下载"></a><a href="#" class="android-btn" id="J_weixin"><img src="img/android-btn.png" alt="安卓版下载"></a></div>
        </div>
        <div class="app">
            <img src="img/app.jpg" alt="应用预览">
            <p class="entry-con">下载完成后，在健康档案中打开“扫一扫”<br />再次扫描您看到的新联芯二维码<br />如有下载困难，请致电：0760-88888888</p>
        </div>
        <div class="footer-bg">
            <p class="entry-con">注：微信用户请在右上角选择“在浏览器中打开”，再选择下载应用</p>
        </div>
    </div>
    <div id="weixin-tip"><p><img src="img/live_weixin.png" alt="微信打开" /><span id="close" title="关闭" class="close">×</span></p></div>
    <script>
        var is_weixin = (function () {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                return true;
            } else {
                return false;
            }
        })();
        window.onload = function () {
            var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
            var btn = document.getElementById('J_weixin');
            var tip = document.getElementById('weixin-tip');
            var close = document.getElementById('close');
            if (is_weixin) {
                btn.onclick = function (e) {
                    tip.style.height = winHeight + 'px';
                    tip.style.display = 'block';
                    return false;
                }
                close.onclick = function () {
                    tip.style.display = 'none';
                }
            }
        }

    </script>
</body>
</html>